package com.sws.wxtemplate.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sws.common.annotation.Excel;
import com.sws.common.core.domain.BaseEntity;

/**
 * 微信消息模板对象 ry_wechat_template
 * 
 * @author dhw
 * @date 2025-06-25
 */
public class WechatTemplate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 模板ID */
    private Long id;

    /** 微信模板ID */
    @Excel(name = "微信模板ID")
    private String templateId;

    /** 模板名称 */
    @Excel(name = "模板名称")
    private String name;

    /** 模板内容（含变量占位符） */
    @Excel(name = "模板内容", readConverterExp = "含=变量占位符")
    private String content;

    /** 跳转链接规则 */
    @Excel(name = "跳转链接规则")
    private String urlRule;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTemplateId(String templateId) 
    {
        this.templateId = templateId;
    }

    public String getTemplateId() 
    {
        return templateId;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setUrlRule(String urlRule) 
    {
        this.urlRule = urlRule;
    }

    public String getUrlRule() 
    {
        return urlRule;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("templateId", getTemplateId())
            .append("name", getName())
            .append("content", getContent())
            .append("urlRule", getUrlRule())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
